<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="sid-38422fae-e03e-43a3-bef4-bd33b32041b2" targetNamespace="http://bpmn.io/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="11.1.0">
  <process id="{{id}}" isExecutable="false">
    <startEvent id="{{start.stepid}}" name="{{start.name}}">
      <outgoing>{{start.outgoing}}</outgoing>
    </startEvent>
    
    {{#steps}}
    <task id="{{stepid}}" name="{{name}}">
      <incoming>{{incoming}}</incoming>
      <outgoing>{{outgoing}}</outgoing>
    </task>
    <sequenceFlow id="{{flowid}}" sourceRef="{{sourceRef}}" targetRef="{{targetRef}}" />
    {{/steps}}

    <exclusiveGateway id="{{end.stepid}}" name="{{end.name}}">
      <incoming>{{end.incoming}}</incoming>
    </exclusiveGateway>
    <sequenceFlow id="{{end.flowid}}" sourceRef="{{end.sourceRef}}" targetRef="{{end.targetRef}}" />
  </process>
  <bpmndi:BPMNDiagram id="BpmnDiagram_1">
    <bpmndi:BPMNPlane id="BpmnPlane_1" bpmnElement="{{id}}">

      <bpmndi:BPMNShape id="step0_di" bpmnElement="step0">
        <omgdc:Bounds x="192" y="{{start.shapey}}" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <omgdc:Bounds x="173" y="{{start.labely}}" width="73" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>

      {{#steps}}  
      <bpmndi:BPMNShape id="{{stepid}}_di" bpmnElement="{{stepid}}">
        <omgdc:Bounds x="160" y="{{shapey}}" width="100" height="80" />
      </bpmndi:BPMNShape>
      {{/steps}}

      <bpmndi:BPMNShape id="end_di" bpmnElement="{{end.stepid}}" isMarkerVisible="true">
        <omgdc:Bounds x="185" y="{{end.shapey}}" width="50" height="50" />
        <bpmndi:BPMNLabel>
          <omgdc:Bounds x="178" y="{{end.labely}}" width="66" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>

      
      {{#steps}}
      <bpmndi:BPMNEdge id="{{flowid}}_di" bpmnElement="{{flowid}}">
        <omgdi:waypoint x="210" y="{{flowy}}" />
        <omgdi:waypoint x="210" y="{{flowdy}}" />
      </bpmndi:BPMNEdge>
      {{/steps}}  

      <bpmndi:BPMNEdge id="{{end.flowid}}_di" bpmnElement="{{end.flowid}}">
        <omgdi:waypoint x="210" y="{{end.flowy}}" />
        <omgdi:waypoint x="210" y="{{end.flowdy}}" />
      </bpmndi:BPMNEdge>

    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>